package com.jielihaofeng.site.category.convert;

import com.jielihaofeng.site.category.entity.CategoryEntity;
import com.jielihaofeng.site.category.vo.CategoryVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 分类管理
 *
 * @author 借力好风 949394048@qq.com
 * @since 1.0.0 2022-07-21
 */
@Mapper
public interface CategoryConvert {
    CategoryConvert INSTANCE = Mappers.getMapper(CategoryConvert.class);

    CategoryEntity convert(CategoryVO vo);

    CategoryVO convert(CategoryEntity entity);

    List<CategoryVO> convertList(List<CategoryEntity> list);

}